<template>
  <el-card>
    <el-row type="flex" justify="space-between">
      <!-- 左边的盒子 -->
      <div v-if="$slots.left" class="left-box">
        <i style="color:#409eff;" class="el-icon-info" />
        <slot name="left" />
      </div>
      <!-- 右边的盒子d -->
      <div class="right-box">
        <slot name="right" />
      </div>
    </el-row>
  </el-card>
</template>

<script>
export default {
  name: 'HeadTool'
}
</script>

<style lang="scss" scoped>

.left-box {

    background-color: #e6f7ff;
    height: 35px;
    line-height: 35px;
    padding: 0 10px;
    border: 1px solid #91d5ff;
    border-radius: 3px;
    font-size: 14px;

    i {
        margin-right: 10px;
    }
}
.right-box {

    flex:1;
    text-align: right;
}
</style>
